<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2021/10/14
  Time: 11:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap 的 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
    <title>简单学生宿舍管理系统</title>
    <style>
        /*@font-face {*/
        /*    font-family: jianwawa;*/
        /*    src: url(../fonts/jianwawazuan.ttf);*/
        /*}*/
        .myfont{
            font-family: jianwawa;
            line-height: 40px;
            font-size: 48px;
        }
        .login{
            margin-top: 30px;
        }
        .mycontent{
            min-height: 600px;
        }
    </style>
</head>
<body>
<div class="container login">
    <div class="row">
        <div class="col-md-1">
            <img class="" src="../images/dormi_logo.png" alt="logo" style="height: 40px;">
        </div>
        <div class="col-md-7 myfont">
            成软学生宿舍管理系统
        </div>
        <div class="col-md-4 text-right" style="margin-top: 30px;font-size: 13px;">
            欢迎您！
            <c:if test="${user.typeid == 1}">
                班主任
            </c:if>
            <c:if test="${user.typeid == 2}">
                宿管
            </c:if>
            <a href="./teacherDetail">${user.name}老师</a> | <a href="./teacherChangePass">修改密码</a> | <a href="/logout">安全退出</a>
        </div>
    </div>
</div>
<hr>
<div class="container mycontent">
    <div class="h3">错误信息</div>
    <div>${errinfo}</div>
    <div>
        <a href="javascript:history.back()">返回上一页</a>
    </div>
</div>
<hr>
<div class="container" style="color: #666; font-size: 12px;">
    <div class="text-center">
        四川成都软件技术专修学院 &copy;2006 - <span id="nowyear"></span>
    </div>
    <div class="text-center">
        2019级软件技术一班  王五
    </div>
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>
<script>
    $(function(){
        $("#nowyear").html(new Date().getFullYear());
    });
</script>
</body>
</html>
